<?php
/**
 * Created by PhpStorm.
 * User: yuyiwen
 * Date: 2018/9/20
 * Time: 下午5:23
 */

namespace app\index\controller;


use think\Controller;

class Common extends Controller
{
    // tp的构造方法
    public function _initialize ()
    {
        if ( session('id') == NULL) {
            $this->error('请登录' , url('log/login'));
        }
    }

}